package com.project.controller.gradeController;

import com.project.bean.GradeBean;
import com.project.service.gradeService.IGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("grade")
public class GradeController {
    @Autowired
    private IGradeService gradeService;

    @RequestMapping("findAll")
    public List<GradeBean> findAll(){
        return gradeService.findAll();
    }
}
